// 这里它存的不是localStorage，它存的是cookie
import Cookies from 'js-cookie'

const TokenKey = 'HMHR72'
const TimeKey = 'HMHR72-TIMESTAMP'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
//时间戳
export function getTimeStamp(){
  return Cookies.get(TimeKey)
}
export function setTimeStamp(){
  return Cookies.set(TimeKey,Date.now())
}
export function removeTimeStamp(){
return Cookies.remove(TimeKey)
}
